package com.ynwt.repository;

import com.ynwt.domain.User;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

/**
 * Created by huangying on 2017/5/4.
 */
@Repository
public interface UserDao extends PagingAndSortingRepository<User, String> {

    int countByOpenid(String openid);

//    User findById(int id);

    User findByUnionid(String unionid);

}
